package com.itspeedster.betterforeyes;

import java.awt.Color;
import java.awt.Toolkit;

import javax.swing.JFrame;

@SuppressWarnings("serial")
public class PreventView extends JFrame{

	public PreventView(){
		super("Better for eyes");
		setUndecorated(true);
		setBackground(new Color(0f, 0f, 0.2f, 0.8f));
		
		Toolkit tk = Toolkit.getDefaultToolkit();
		int screen_w = (int)tk.getScreenSize().getWidth();
		int screen_h = (int)tk.getScreenSize().getHeight();
		
		setSize(screen_w, screen_h);
		setAlwaysOnTop(true);
		 
		setIconImage(AppRessources.getAppIcon());
		
		setVisible(true);
	}
}
